#if !defined(AFX_SPLITTER_H__C3DA0C7D_2E1B_412E_BE59_4A2E5191949D__INCLUDED_)
#define AFX_SPLITTER_H__C3DA0C7D_2E1B_412E_BE59_4A2E5191949D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Splitter.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CVSplitter window
#define WM_USER_VSPLITTER	(WM_USER + 11101)

class CVSplitter : public CWnd
{
// Construction
public:
	CVSplitter();

// Attributes
public:
    void    SetEventMsg(UINT msg)   { m_nMsg = msg; }

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVSplitter)
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetLeftRight( int nMinLeft, int nMinRight );
	virtual ~CVSplitter();

	// Generated message map functions
protected:
	void DrawDraggingBar( CPoint point, BOOL bLast );
	//{{AFX_MSG(CVSplitter)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnMove(int x, int y);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL	m_bSplitter;
	CRect	m_rcWin;
	CRect	m_rcParent;
	int		m_nOffset;
	int		m_nMinLeft;
	int		m_nMinRight;
    UINT    m_nMsg;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SPLITTER_H__C3DA0C7D_2E1B_412E_BE59_4A2E5191949D__INCLUDED_)
